import "reflect-metadata";

var bodyParser = require('body-parser')
import Express from "express"
import {RouterContent} from './api/content';
import {RouterMessage} from './api/message';
var history = require('connect-history-api-fallback');

const app = Express();

app.use(bodyParser.json({limit:'50mb'}));
app.use(bodyParser.urlencoded({limit:'50mb',extended:true}));

app.use(Express.json());
app.use(history());
// app.use("/", (req, res) => {
    // res.send('he')
// });
app.use("/", Express.static("client"));
app.use('/content', RouterContent)
app.use('/message', RouterMessage)

app.listen(3000, () => {
    console.log("gogogo");  
});
